package com.realife.eson.common.laboratory;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2022/6/18 14:50
 * @description:
 */
@NoArgsConstructor
@Data
public class MeObj {
    /**
     * items
     */
    @JSONField(name = "items")
    public List<ItemsDTO> items;

    /**
     * ItemsDTO
     */
    @NoArgsConstructor
    @Data
    public static class ItemsDTO {
        /**
         * capabilities
         */
        @JSONField(name = "capabilities")
        public List<String> capabilities;
        /**
         * enabled
         */
        @JSONField(name = "enabled")
        public Boolean enabled;
        /**
         * name
         */
        @JSONField(name = "name")
        public String name;
        /**
         * tokens
         */
        @JSONField(name = "tokens")
        public List<TokensDTO> tokens;

        /**
         * TokensDTO
         */
        @NoArgsConstructor
        @Data
        public static class TokensDTO {
            /**
             * expiresAt
             */
            @JSONField(name = "expiresAt")
            public String expiresAt;
            /**
             * id
             */
            @JSONField(name = "id")
            public String id;
            /**
             * issuedAt
             */
            @JSONField(name = "issuedAt")
            public String issuedAt;
        }
    }
}

